package com.xindong.paking;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.xindong.paking.mapper")
public class PakingSystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(PakingSystemApplication.class, args);

    }

    /*
    * 分页插件
    *
    * */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
